package com.scu.baseline.mapper;

import org.apache.ibatis.annotations.Param;
import com.scu.baseline.pojo.Host;
import com.scu.baseline.pojo.HostSimple;

import java.util.List;
import java.util.Map;
/**
 * (Host)表数据库访问层
 *
 * @author AlonBurukeses
 * @since 2022-06-23 09:14:21
 */
public interface HostMapper {
    List<HostSimple> selectSimple();
    List<Host> queryById(Integer hostId);
    void insert(Host host);
    void update(Map map);
    void insertMap(Map map);
    boolean deleteById(Integer hostId);
    List<Host> selectAllByHostNameHosts(String hostName);
    List<Host> queryAllByLimit(String hostName);
    List<HostSimple> selectByPage(@Param("index") Integer index,@Param("hostName") String hostName);
    Integer count();
    List<HostSimple> selectPage(Integer index);
    HostSimple selectByHostMac(String hostMac);
    List<HostSimple> selectSimpleByHostId(Integer hostId);
    List<HostSimple> selectSimpleByHostMac(String hostMac);
}
